#include<iostream>
#define MAX 20
int main()
{
	int i,v[MAX],t1=1,t2=1,t3;
	std::cout<<"Primii 20 de termeni ai sirului lui Fibonacci sunt: \n";
	std::cout<<t1<<","<<t2;
	for(i=3;i<=MAX;i++)
		{	
			t3=t1+t2;
			std::cout<<","<<t3;
			t1=t2;
			t2=t3;
		}
	std::cout<<"\n";
	return 0;
}
